package com.ruoyi.applet.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.applet.mapper.SearchHistoryMapper;
import com.ruoyi.applet.domain.SearchHistory;
import com.ruoyi.applet.service.ISearchHistoryService;

import javax.annotation.Resource;

/**
 * 搜索历史记录Service业务层处理
 * 
 * @author ruoyi
 * @date 2024-11-19
 */
@Service
 public class SearchHistoryServiceImpl implements ISearchHistoryService
{
    @Resource
    private SearchHistoryMapper searchHistoryMapper;


    @Override
    public List<SearchHistory> selectAllBySearchUsrIdList(Long usrId) {
        return searchHistoryMapper.selectAllBySearchUsrIdList(usrId);
    }

    @Override
    public Boolean insertAll(Long searchUsrId, String searchText) {
        return searchHistoryMapper.insertAll(searchUsrId, searchText);
    }

    @Override
    public Integer selectAllBySearchUsrIdInteger(Long searchUsrId, String searchText) {
        return searchHistoryMapper.selectAllBySearchUsrIdInteger(searchUsrId, searchText);
    }

    @Override
    public Boolean deleteBySearchUsrIdBoolean(Long searchUsrId, Long searchId) {
        return searchHistoryMapper.deleteBySearchUsrIdBoolean(searchUsrId, searchId);
    }
}
